#define _CRT_SECURE_NO_WARNINGS 1

#define MAX_ROW 3
#define MAX_COL 3

#include <stdio.h>

char is_win(char(*board)[MAX_COL], int row, int col)
{
    int i = 0;
    int j = 0;

    for (i = 0; i < row; i++)
    {

        if (board[i][0] == board[i][1] && board[i][1] == board[i][2] && board[i][0] != 'O')
        {
            return board[i][0];
        }
        if (board[0][i] == board[1][i] && board[1][i] == board[2][i] && board[0][i] != 'O')
        {
            return board[0][j];
        }
        if (board[0][0] == board[1][1] && board[1][1] == board[2][2] && board[0][0] != 'O')
        {
            return board[0][0];
        }
        if (board[0][2] == board[1][1] && board[1][1] == board[2][0] && board[1][1] != 'O')
        {
            return board[1][1];
        }

    }
    return 'Q';
}
int main() {
    int i = 0;
    int j = 0;
    char arr[MAX_ROW][MAX_COL] = { 0 };
    for (i = 0; i < MAX_ROW; i++)
    {
        for (j = 0; j < MAX_COL; j++)
        {
            scanf("%c", &arr[i][j]);
            getchar();
        }
    }
    if (is_win(arr, MAX_ROW, MAX_COL) == 'K')
    {
        printf("KiKi wins!");
    }
    else if (is_win(arr, MAX_ROW, MAX_COL) == 'B')
    {
        printf("BoBo wins!");
    }
    else
    {
        printf("No winner!");
    }
    return 0;
}

#include <stdio.h>

int main() {
    int n = 0;
    scanf("%d", &n);
    int i = 0;
    int tmp = 0;
    int ret = 0;
    for (i = 0; i < n; i++)
    {
        scanf("%d", &tmp);
        ret ^= tmp;
    }
    printf("%d", ret);
    return 0;
}

int findPeakElement(int* nums, int numsLen) {
    // write code here
    int i = 0;
    while (nums[i] < nums[i + 1]) {
        ++i;
        if (i == numsLen - 1) return numsLen - 1;
    }
    return i;
}